package com.aruba.consumer.service.impl;

import com.aruba.api.service.DemoService;
import com.aruba.consumer.service.DemoConsumerService;
import org.apache.dubbo.config.annotation.DubboReference;
import org.springframework.stereotype.Service;

@Service
public class DemoConsumerServiceImpl implements DemoConsumerService {

    //    @DubboReference(loadbalance = "roundrobin")
    @DubboReference
    private DemoService service;

    @Override
    public String demoConsumer() {
        return service.demo("dubbo");
    }
}
